package com.uzai.console.service.feign;

import com.uzai.console.common.UzaiRespVo;
import com.uzai.console.dto.feign.uzaichat.UpdateUzaichatNotifyDto;
import com.uzai.console.service.feign.impl.UzaichatFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 悠聊
 * @Auther: liuqi
 * @Date: 2021/11/24 16:22
 * @Description:
 */
@Component
@FeignClient(value = "uzai-chat-server", fallbackFactory = UzaichatFeignFallbackFactory.class)
public interface UzaichatFeignService {

    /**
     * 修改悠聊配置通知悠聊系统
     * @author jitwxs
     * @date 2021/11/29 10:25
     * @param updateUzaichatNotifyDto
     * @return com.uzai.console.common.UzaiRespVo<java.lang.String>
     */
    @PostMapping("/cs/updateNotify")
    UzaiRespVo<String> updateNotify(@RequestBody UpdateUzaichatNotifyDto updateUzaichatNotifyDto);

}
